<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Parallel Gaussian Process Regression: pgpr_domain Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Parallel Gaussian Process Regression
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">The implementation of parallel Gaussian process (GP) regression is based on the following publication: Jie Chen, Nannan Cao, Kian Hsiang Low, Ruofei Ouyang, Colin Keng-Yan Tan &amp; Patrick Jaillet. Parallel Gaussian Process Regression with Low-Rank Covariance Matrix Approximations. In Proceedings of the 29th Conference on Uncertainty in Artificial Intelligence (UAI 2013), Bellevue, WA, Jul 11-15, 2013.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classpgpr__domain-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pgpr_domain Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class stores the domain data in a matrix manner.  
 <a href="classpgpr__domain.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pgpr__data_8h_source.html">pgpr_data.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac527084df0c657962f29a554da0b3eea"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#ac527084df0c657962f29a554da0b3eea">pgpr_domain</a> (<a class="el" href="classpgpr__matrix.html">Mint</a> n, <a class="el" href="classpgpr__matrix.html">Mdoub</a> a)</td></tr>
<tr class="memdesc:ac527084df0c657962f29a554da0b3eea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#ac527084df0c657962f29a554da0b3eea">More...</a><br /></td></tr>
<tr class="separator:ac527084df0c657962f29a554da0b3eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac24189f56e27aad49dee703f5a58cc9b"><td class="memItemLeft" align="right" valign="top">Doub&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#ac24189f56e27aad49dee703f5a58cc9b">getDist</a> (Int ci, Int cj)</td></tr>
<tr class="memdesc:ac24189f56e27aad49dee703f5a58cc9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the Euclidean distance between a pair of inputs.  <a href="#ac24189f56e27aad49dee703f5a58cc9b">More...</a><br /></td></tr>
<tr class="separator:ac24189f56e27aad49dee703f5a58cc9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a814453a62ebc1ae9b4e420323bf013c2"><td class="memItemLeft" align="right" valign="top">Int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#a814453a62ebc1ae9b4e420323bf013c2">selRand</a> (<a class="el" href="structt__state.html">t_state</a> *st)</td></tr>
<tr class="memdesc:a814453a62ebc1ae9b4e420323bf013c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Select randomly an index of a set, which is not selected.  <a href="#a814453a62ebc1ae9b4e420323bf013c2">More...</a><br /></td></tr>
<tr class="separator:a814453a62ebc1ae9b4e420323bf013c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55b740e3d3a4a0c5bf86cd14895cd76b"><td class="memItemLeft" align="right" valign="top">Int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#a55b740e3d3a4a0c5bf86cd14895cd76b">getAttr</a> (Int s, Doub *a)</td></tr>
<tr class="memdesc:a55b740e3d3a4a0c5bf86cd14895cd76b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the attributes of an input and its corresponding outputs.  <a href="#a55b740e3d3a4a0c5bf86cd14895cd76b">More...</a><br /></td></tr>
<tr class="separator:a55b740e3d3a4a0c5bf86cd14895cd76b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae07953124466fffafd45013bd7917ddd"><td class="memItemLeft" align="right" valign="top">Int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#ae07953124466fffafd45013bd7917ddd">getNeighbour</a> (Int s, <a class="el" href="classpgpr__vector.html">Vint</a> &amp;c)</td></tr>
<tr class="memdesc:ae07953124466fffafd45013bd7917ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a set of indices corresponding to the set of inputs which connected with a specific input.  <a href="#ae07953124466fffafd45013bd7917ddd">More...</a><br /></td></tr>
<tr class="separator:ae07953124466fffafd45013bd7917ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a15bec9baded2abd76ff7d2b58fd6eacf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15bec9baded2abd76ff7d2b58fd6eacf"></a>
Int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#a15bec9baded2abd76ff7d2b58fd6eacf">dd</a></td></tr>
<tr class="memdesc:a15bec9baded2abd76ff7d2b58fd6eacf"><td class="mdescLeft">&#160;</td><td class="mdescRight">dimension of the domain (dimension of inputs and outputs). <br /></td></tr>
<tr class="separator:a15bec9baded2abd76ff7d2b58fd6eacf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75100ee1d73c7b7967ffb3fc8cb27c6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae75100ee1d73c7b7967ffb3fc8cb27c6"></a>
Int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpgpr__domain.html#ae75100ee1d73c7b7967ffb3fc8cb27c6">ds</a></td></tr>
<tr class="memdesc:ae75100ee1d73c7b7967ffb3fc8cb27c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">size of the domain <br /></td></tr>
<tr class="separator:ae75100ee1d73c7b7967ffb3fc8cb27c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class stores the domain data in a matrix manner. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac527084df0c657962f29a554da0b3eea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pgpr_domain::pgpr_domain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpgpr__matrix.html">Mint</a>&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classpgpr__matrix.html">Mdoub</a>&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>Matrix representing the topology of domain inputs </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">a</td><td>Matrix containing all domain data, both inputs and outputs </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a55b740e3d3a4a0c5bf86cd14895cd76b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Int pgpr_domain::getAttr </td>
          <td>(</td>
          <td class="paramtype">Int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Doub *&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the attributes of an input and its corresponding outputs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>index of an input </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">a</td><td>pointor to an array that stores the attributes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac24189f56e27aad49dee703f5a58cc9b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Doub pgpr_domain::getDist </td>
          <td>(</td>
          <td class="paramtype">Int&#160;</td>
          <td class="paramname"><em>ci</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Int&#160;</td>
          <td class="paramname"><em>cj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compute the Euclidean distance between a pair of inputs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ci</td><td>index of an input </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cj</td><td>index of an input </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Value of Euclidean distance </dd></dl>

</div>
</div>
<a class="anchor" id="ae07953124466fffafd45013bd7917ddd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Int pgpr_domain::getNeighbour </td>
          <td>(</td>
          <td class="paramtype">Int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classpgpr__vector.html">Vint</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a set of indices corresponding to the set of inputs which connected with a specific input. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>Index of a specific input </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">c</td><td>A list of indices corresponding to the connected inputs </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of the connected inputs </dd></dl>

</div>
</div>
<a class="anchor" id="a814453a62ebc1ae9b4e420323bf013c2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Int pgpr_domain::selRand </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structt__state.html">t_state</a> *&#160;</td>
          <td class="paramname"><em>st</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Select randomly an index of a set, which is not selected. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">st</td><td>the status indicating if an element is selected or not </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index of an input </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="pgpr__data_8h_source.html">pgpr_data.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 5 2015 14:32:10 for Parallel Gaussian Process Regression by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>
